//方法一：创建新字符串存储
#include <iostream>
#include <string>
using namespace std;

int main() {
        
    string s1, s2, s3;
    getline(cin, s1);
    getline(cin, s2);
  
    // write your code here......
    s3 = s1 + s2;
//  ^look here
    cout << s3;
    return 0;
}

//方法二：输出字符串流
#include <string>
#include <sstream> //头文件
using namespace std;

int main() {
        
    string s1, s2;
    getline(cin, s1);
    getline(cin, s2);
 
    // write your code here......
    ostringstream os;
    os << s1 << s2 << endl;
    cout << os.str();

    return 0;
}
/*键盘输入两个字符串，将这两个字符串进行拼接后输出。*/